<link rel="stylesheet" href="/static/plugs/lay-module/treetable-lay/treetable.css?v={$version}" media="all">
<style>
    .layui-btn:not(.layui-btn-lg ):not(.layui-btn-sm):not(.layui-btn-xs) {
        height: 34px;
        line-height: 34px;
        padding: 0 8px;
    }
</style>
<div class="layuimini-container">
    <div class="layuimini-main">
        <table id="currentTable" class="layui-table layui-hide"
               data-auth-add="{:auth('insurance.policy/add')}"
               data-auth-edit="{:auth('insurance.policy/edit')}"
               data-auth-billpay="{:auth('insurance.policy/billpay')}"
               data-auth-setQe="{:auth('insurance.policy/setQe')}"
               data-auth-delete="{:auth('insurance.policy/delete')}"
               data-auth-import="{:auth('insurance.policy/import')}"
               data-auth-supplement="{:auth('insurance.policy/supplement')}"
               lay-filter="currentTable">
        </table>
    </div>
</div>
<script type="text/html" id="toolbar">
    <button class="layui-btn layui-btn-sm layuimini-btn-primary" data-treetable-refresh><i class="fa fa-refresh"></i></button>
    <button class="layui-btn layui-btn-normal layui-btn-sm {if !auth('insurance.policy/add')}layui-hide{/if}" data-open="insurance.policy/add" data-title="添加"><i class="fa fa-plus"></i> 添加</button>
    <button class="layui-btn layui-btn-sm layui-btn-danger {if !auth('insurance.policy/delete')}layui-hide{/if}" data-url="insurance.policy/delete" data-treetable-delete="currentTableRenderId"><i class="fa fa-trash-o"></i> 删除</button>
    <button class="layui-btn layui-btn-sm" type="button" data-treetable-arrow data-arrow="up"><i class="fa fa-arrow-up"></i> 一键折叠</button>
</script>

<template id="bm-tpl">
    <div class="layuimini-container">
        <form class="layui-form" id="bm-form">
            <div class="layui-form-item">
                <label class="layui-form-label">车辆类型</label>
                <div class="layui-input-block">
                    <select name="car_type" id="car_type">
                        <option value="">请选择车辆类型</option>
                        {volist name='car_type' id='vo'}
                        <option value="{$vo.id}">{$vo.title}</option>
                        {/volist}
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">代理人</label>
                <div class="layui-input-block">
                    <select name="agent" id="agent">
                        <option value="">请选择代理人</option>
                        {volist name='agent' id='vo'}
                        <option value="{$vo.name}">{$vo.name}</option>
                        {/volist}
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">是否过户</label>
                <div class="layui-input-block">
                    <select id="is_transfer_owner" name="is_transfer_owner" lay-verify="required" >
                        <option value="">请选择是否过户</option>
                        <option value="0">否</option>
                        <option value="1">是</option>
                    </select>
                </div>
            </div>
    
            <div id="sale_type_3" class="layui-form-item">
                <label class="layui-form-label">续保</label>
                <div class="layui-input-block">
                    <select id="is_renewal" name="is_renewal" lay-verify="required" lay-reqtext="请选择续保">
                        <option value="">请选择续保</option>
                        <option value="0">否</option>
                        <option value="1">是</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-mid layui-text-em" style="color: red !important">提示：任意一项不为空即可修改</div>
            <div class="layui-form-item">
                <a href="javascript:;" class="layui-btn layui-btn-sm layui-btn-normal" lay-active="save">保存</a>
            </div>
        </form>
    </div>
</template>